package appapi.dto.bridge;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author dhq
 * @version 1.0
 * @date 2023/11/6  17:29
 */
@Data
@ApiModel("设备月检导出信息")
public class MonthExportDto implements Serializable {
    @ApiModelProperty(value = "设备类别")
    @Excel(name = "设备类型", orderNum = "0",width = 20)
    private String equipTypeName;

    @ApiModelProperty(value = "设备别名")
    @Excel(name = "设备别名", orderNum = "0",width = 20)
    private String equipName;

    @ApiModelProperty(value = "规格型号")
    @Excel(name = "规格型号", orderNum = "0",width = 20)
    private String equipModel;

    @ApiModelProperty(value = "所属机构")
    @Excel(name = "所属机构", orderNum = "0",width = 20)
    private String orgaName;

    @ApiModelProperty(value = "月检人员")
    @Excel(name = "月检人员", orderNum = "0",width = 20)
    private String staffName;

    @ApiModelProperty(value = "整改要求")
    @Excel(name = "整改要求", orderNum = "0",width = 20)
    private String expRequire;

    @ApiModelProperty(value = "月检结果(0-正常;1-异常)")
    @Excel(name = "月检结果", orderNum = "0",width = 20,replace={"正常_0", "异常_1"})
    private Integer monthResult;

    @ApiModelProperty(value = "月检时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "月检时间",orderNum = "7",width = 20, format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime monthDate;


}
